package homework;

import java.util.Arrays;

public class Exercise02 {
    public static void main(String[] args) {
        String[] strArray = {"kkbJava", "asdjavaccc", "Jaasdhva", "siaiq", "javacjavaz", "iloveJava"};
        String keyWord = "java";
        String keyWordUpperCase = keyWord.toUpperCase();

        for (int i = 0; i < strArray.length; i++) {
            strArray[i] = strArray[i].toUpperCase();
            if(strArray[i].contains(keyWordUpperCase)){
                strArray[i] = strArray[i].replace(keyWordUpperCase,"");
            }
        }

        System.out.println("String[] deleteArr = " + Arrays.toString(strArray));

    }
}
